package homework5;

public class c53 {
	 public static void main(String[] args){
	    	int a=1;
	    	int sum=0;
	    	while(a<=50){
	    		if(a%7==0){
	    		sum=sum+a;
	    		}
	    		a++;
	    	}
	    	System.out.println(sum);
	    }
	}